#include "Blocks/MulticoloredLedBlock.h"

namespace PocketSurvival
{
    int32_t MulticoloredLedBlock::getIndex()
    {
        return Index();
    }
    const std::string &MulticoloredLedBlock::getBlockName()
    {
        static std::string blockName = "MulticoloredLedBlock";
        return blockName;
    }

    int32_t MulticoloredLedBlock::getFace(int32_t value)
    {
        return MulticoloredLedBlock::GetMountingFace(Terrain::ExtractData(value));
    }

    const std::vector<BoundingBox> &MulticoloredLedBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t num = Terrain::ExtractData(value);
        if(num < GET_ARRAY_LEN(BlockConstans::multicoloredLedCollisionBoxes))
        {
            return BlockConstans::multicoloredLedCollisionBoxes[num];
        }
        return BlockConstans::zeroCollisionBoxes;
    }
}